﻿@model IceTea.Domain.IceTeaMembership

@using IceTea.Resources;
@{
    ViewBag.Title = ResourceHelper.ReadString("Login_Title");
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="col-md-8 col-md-offset-2">
    <h1>Please login</h1>
</div>

@using(Html.BeginForm("Login", "Account", FormMethod.Post, new{@class="form-horizontal", @role="form"})){
        <div class="form-group">
            <div class="col-md-10 col-md-offset-2">
                @Html.ValidationSummary()
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(u => u.LoginName, new {@class="control-label col-md-2" })
            <div class="col-md-6 input-group">
                @Html.TextBoxFor(u => u.LoginName,  
                new{@class="form-control", @autofocus="autofocus", @placeholder="Enter your user name or Email"})
                <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
            </div>            
        </div>
        <div class="form-group">
        @Html.LabelFor(u => u.LoginPass, new {@class="control-label col-md-2" })
        <div class="col-md-6 input-group">
            @Html.PasswordFor(u => u.LoginPass, new {@class="form-control" })
            <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
            </div>
        </div>
        <div class="form-group">
        <div class="col-md-6 col-md-offset-2">
            <button type="submit" class="btn btn-success">@ResourceHelper.ReadString("Login_Login")</button>
            
            @Html.ActionLink("Sign Up", "Register", "Account", null, new { @class = "btn btn-info" })
            </div>
        </div>
}

@Scripts.Render("~/bundles/validate")